package com.ax.center.service;

import com.ax.center.dto.ApiResponse;
import com.ax.center.entity.Role;
import com.ax.center.entity.UserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author zy
 * @date 2023/7/5 16:10
 */
public interface UserRoleService extends IService<UserRole> {

    public List<Role> queryRoleNameByUserId(Long userId);

    public ApiResponse insertRole(Long userId,Long roleId);

    public ApiResponse deleteOneByRoleId(Long roleId);

    public List<Long> queryByRoleIds(String roleName);

    public ApiResponse updateRole(Long id,Long roleId);

    public ApiResponse deleteByUserId(Long userId);

}
